Message

data class Message(val messageSettings: NavigationSpec.Message.MessageSettings, val delegate: MFMessageComposeViewControllerDelegateProtocol, val animated: Boolean = false, val completion: () -> Unit? = null) : NavigationSpec

Presents a MFMessageComposeViewController

Parameters

messageSettings

The MessageSettings for configuring the message

delegate

The MFMessageComposeViewControllerDelegateProtocol to add to the MFMessageComposeViewController

animated

Specifies whether transition is animated

completion

Optional function called when presentation is completed

Constructors

Link copied to clipboard
constructor(messageSettings: NavigationSpec.Message.MessageSettings, delegate: MFMessageComposeViewControllerDelegateProtocol, animated: Boolean = false, completion: () -> Unit? = null)

Types

Link copied to clipboard
data class Attachment(val data: NSData, val mimeType: String, val fileName: String)

An attachement added to the message

Link copied to clipboard
data class MessageSettings(val recipients: List<String> = emptyList(), val subject: String? = null, val body: String? = null, val message: MSMessage? = null, val disableAttachments: Boolean = false, val attachments: List<NavigationSpec.Message.Attachment> = emptyList())

Settings for configuring the message

Properties

Link copied to clipboard
Link copied to clipboard
val completion: () -> Unit?
Link copied to clipboard
val delegate: MFMessageComposeViewControllerDelegateProtocol